import { defineStore } from "pinia";
import { store } from "@/store";
import { useStorage } from "@vueuse/core";
export const useMessageListStore = defineStore("messageList", () => {
	// state

    const downTime =ref<any>('');//服务器当前时间
    const enmessagelist=ref<any>([]);//企业消息列表
	const permessageList =ref<any>([]);//用户消息列表
	const projectmessagelist =ref<any>([]);//用户消息 二级 列表
	const childAct =ref<any>([]);//用户消息当前选中的二级菜单

	const merberInfoSt = ref<any>("");//用户的状态信息

	
	// function toggleShowfeed(){
    //     isShowfeed.value = !isShowfeed.value;
    // }
	return {
		
		merberInfoSt,
		childAct,
		projectmessagelist,
		permessageList,
        enmessagelist,
        downTime
       
	};
},{
	persist: {
		key: 'messageListStore', 
		storage: localStorage, 
		paths: [],
	},
});